package com.jishuo.nontax.bean.vo;

import com.jishuo.nontax.bean.message.SetCheckDataAcountDetailDTO;
import com.jishuo.nontax.bean.message.SetPreerrDTO;
import com.jishuo.nontax.bean.message.SetPreerrDetailDTO;
import lombok.Data;

import java.io.Serializable;

/**
 * 预审失败返回银行
 * 
 * @author hlp
 * @email 1459875748@qq.com
 * @date 2023-02-02 10:13:13
 */
@Data
public class PreerrVO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//代理银行
	private Long bankid;
	//日期
	private String paybankdt;
	//状态1：成功2：未达账3：
	private Integer state;
	//备注
	private String memo;

	private String optertype;
    private String amt;
    private String nums;
    private String accountcode;
    private String accountname;
    private String bankname;
    private Integer state1;
    private String optername;
    private String num;

    public int count1;//总笔数
    public int count2;//向财政发送笔数

    public PreerrVO(){}

    public PreerrVO(SetPreerrDTO bean){
	    if(bean.getBankid()!=null){
            this.bankid = Long.valueOf(bean.getBankid());
        }
	    if(bean.getState()!=null){
            this.state = Integer.valueOf(bean.getState());
        }
        this.paybankdt=bean.getPaybankdt();
        this.memo=bean.getMemo();
    }

    public PreerrVO(SetPreerrDetailDTO bean){

        if(bean.getBankid()!=null){
            this.bankid = Long.valueOf(bean.getBankid());
        }
        if(bean.getState()!=null){
            this.state = Integer.valueOf(bean.getState());
        }
        this.paybankdt=bean.getPaybankdt();
        this.optertype = bean.getOptertype();
        this.amt = bean.getAmt();
        this.nums = bean.getNums();
    }

    public PreerrVO(SetCheckDataAcountDetailDTO bean){
        if(bean.getBankid()!=null){
            this.bankid = Long.valueOf(bean.getBankid());
        }
        this.paybankdt=bean.getPaybankdt();
        this.optertype=bean.getPurpose();
        this.nums =bean.getDatacount();
        this.amt = bean.getAmt();

    }

}
